import sys, smtplib, string
def mail_admin(status):
	fromaddr = "bike_swipe@centenary.edu"
	toaddrs  = "rlopez@centenary.edu, mgoadric@centenary.edu,tmessina@centenary.edu, kwomack@centenary.edu"
	msg = """\
From: %s
To: %s
Subject: Bike check out

	""" % (fromaddr, toaddrs)

	msg = msg + status

	# The actual mail send
	server = smtplib.SMTP('mail.centenary.edu')
	server.sendmail(fromaddr, toaddrs.split(","), msg)
	server.quit()

def mail_admin2(status, subject):
	fromaddr = "bike_swipe@centenary.edu"
	toaddrs  = "rlopez@centenary.edu, mgoadric@centenary.edu,tmessina@centenary.edu, kwomack@centenary.edu"
	msg = """\
From: %s
To: %s
Subject: %s

	""" % (fromaddr, toaddrs, subject)

	msg = msg + status

	# The actual mail send
	server = smtplib.SMTP('mail.centenary.edu')
	server.sendmail(fromaddr, toaddrs.split(","), msg)
	server.quit()

def mail_user(status, subject, toaddrs):
	fromaddr = "bike_swipe@centenary.edu"
	msg = """\
From: %s
To: %s
Subject: %s

	""" % (fromaddr, toaddrs, subject)

	msg = msg + status

	# The actual mail send
	server = smtplib.SMTP('mail.centenary.edu')
	server.sendmail(fromaddr, toaddrs.split(","), msg)
	server.quit()
